﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Esosi.Medical.ShangHai
{
    public class MedicalShangHai
    {
        protected string MedicalTrade(string sendMessage)
        {
            //var returnMessage = string.Empty;// new byte[512];
            var utf8 = Encoding.UTF8;

            var utfBytes = utf8.GetBytes(sendMessage);
            var xx = utf8.GetString(utfBytes);
            //return MedicalCore.SendRcv4("12345678", xx, returnMessage);

            var returnMessage = new byte[512];
            return MedicalCore.SendRcv2("12345678", xx, returnMessage);
        }
    }
}